package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.LocalStore;
import com.weixing.mall.provider.model.query.LocalStoreQuery;
import com.weixing.mall.provider.model.query.NearLocalStoreQuery;
import com.weixing.mall.provider.model.vo.LocalStoreEditVo;
import com.weixing.mall.provider.model.vo.LocalStoreNearVo;
import com.weixing.mall.provider.model.vo.LocalStoreVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实体店铺 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface LocalStoreMapper extends BaseMapper<LocalStore> {

    IPage<LocalStoreVo> selectListOfPage(@Param("pg") Page page, @Param("qs")LocalStoreQuery localStoreQuery);

    IPage<LocalStoreNearVo> selectStoreOfPage(@Param("pg") Page page, @Param("qs")NearLocalStoreQuery nearLocalStoreQuery);

    void changeEnable(Long id, int code);

    LocalStoreEditVo selectLocalStoreEditVo(long id);
}